package com.aleaho.cftrack.activity;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.aleaho.cftrack.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/9/11.
 */

public class LoadingDialog extends Dialog {

    @BindView(R.id.tv)
    TextView tv;


    public LoadingDialog(@NonNull Context context) {
        super(context,R.style.loadingDialogStyle);
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_loading);
        ButterKnife.bind(this);

        LinearLayout linearLayout = (LinearLayout)this.findViewById(R.id.LinearLayout);
        linearLayout.getBackground().setAlpha(210);

    }

    public  void setMessage(String message){
        tv.setText(message);
    }
}
